// components/field/field.js
Component({
  behaviors: ['wx://form-field'],
  properties: {
    lText: {
      type: String,
      value: ""
    },
    rText: {
      type: String,
      value: ""
    },
    rTextColor: {
      type: String,
      value: ""
    },
    placeholder: {
      type: String,
      value: "text"
    },
    type: {
      type: String,
      value: ""
    },
    name: {
      type: String,
      value: ""
    },
    id: {
      type: String,
      value: ""
    },
    focus: {
      type: Boolean,
      value: false
    },
    maxlength: {
      type: Number,
      value: 140
    }
  },
  methods: {
    handleInpute(e){
      console.log('handleInpute', e)
    },
    handleFocus(e){
      console.log('handleFocus', e)
    },
    handleBlur(e){
      console.log('handleBlur', e)
    },
    handleConfirm(e){
      console.log('handleConfirm', e)
    }
  }
})
